package io.halo.payment.modules.app.form;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 查询用户订单表单
 *
 * @author: austin
 * @since: 2022/12/30 22:11
 */
@Data
public class UserOrderForm {

    @NotNull(message = "当前页数不能为空")
    @Min(1)
    @ApiModelProperty(value = "当前页数")
    private Integer current;

    @NotNull(message = "分页大小不能为空")
    @ApiModelProperty(value = "分页大小")
    @Range(min = 0, max = 100)
    private Integer pageSize;
}
